package com.wxb.note.model;


import com.wxb.note.constant.PriceType;

import java.math.BigDecimal;

/**
 * @author wxb
 */
public class Mango extends BaseFruit{
    public Mango(BigDecimal price, PriceType priceType, BigDecimal num, BigDecimal discount) {
        super(price, priceType, num, discount);
        checkFieldValue("芒果");
    }

    public Mango(BigDecimal price, PriceType priceType, BigDecimal num) {
        super(price, priceType, num);
        checkFieldValue("芒果");
    }

    public Mango(BigDecimal price, BigDecimal num) {
        super(price, num);
        checkFieldValue("芒果");
    }

    @Override
    public BigDecimal calculation() {
        return super.calculation();
    }
}
